{% for field in form %}
    {% if field.is_hidden %}
        {{ field }}
    {% else %}
        {% load formtags %}

        {% with field|input_type as input_type %}
            <tr>
                <th>{{ field.label }}</th>
                <td colspan="3">{{field|add_placeholder}}</td>
            </tr>
        {% endwith %}

    {% endif %}
{% endfor %}